package com.datasource.service.impl;

import com.datasource.dao.RoleMapper;
import com.datasource.model.Role;
import com.datasource.service.IRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author fyy
 * @Description
 * @Date 2020/6/4 11:17
 */
@Service
public class RoleService implements IRoleService {

    @Resource
    private RoleMapper roleMapper;

    @Override
    public List<Role> getAllRole() {
        return roleMapper.selectAll();
    }

}
